package com.example.taximeter.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;


/**
 * 用户视图
 */
public class UserView {

    private Integer id;//用户id--主键

    private String username;//用户名

    private String passwd;//密码

    private String fullname;//姓名

    private String usersex;//性别

    private Integer roleid;//角色用户id

    private String userstat;//用户状态

    @JSONField(format="yyyy-MM-dd")
    private Date userexp;//用户有效期至

    private String memo;//备注

    private String rolename;//角色名

    private Integer companyid;//公司id

    private String companyname;//公司名称


    @Override
    public String toString() {
        return "UserView{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                ", fullname='" + fullname + '\'' +
                ", usersex='" + usersex + '\'' +
                ", roleid=" + roleid +
                ", userstat='" + userstat + '\'' +
                ", userexp=" + userexp +
                ", memo='" + memo + '\'' +
                ", rolename='" + rolename + '\'' +
                ", companyid=" + companyid +
                ", companyname=" + companyname +
                '}';
    }

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public Integer getCompanyid() {
        return companyid;
    }

    public void setCompanyid(Integer companyid) {
        this.companyid = companyid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Date getUserexp() {
        return userexp;
    }

    public void setUserexp(Date userexp) {
        this.userexp = userexp;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getUsersex() {
        return usersex;
    }

    public void setUsersex(String usersex) {
        this.usersex = usersex;
    }

    public String getUserstat() {
        return userstat;
    }

    public void setUserstat(String userstat) {
        this.userstat = userstat;
    }
}
